{% extends 'base.html' %}
{% load static %}


{% block content %}

    <h3>待收货订单列表</h3>

    <ul>
        <!--订单展示-->
        {% for order in orders %}
            <li style="margin-bottom: 20px">
                <div style="height: 2px; width: 100%; border: 1px solid blue;clear: both;"></div>
                    <p style="font-size: 32px; text-align: center;color: orangered">订单id: {{ order.id }}</p>
                <div style="height: 2px; width: 100%; border: 1px solid blue;"></div>
                    {% for ordergoods in order.ordergoodsmodel_set.all %}
                        <div style="margin-top: 20px">
                            <p style="font-size: 24px;float: left;width: 500px;height: 200px;margin: 0">商品数量: {{ ordergoods.good_num }}<br/><br/>商品名称: {{ ordergoods.goods.productlongname }}</p>
                        <!--展示商品的名称-->
                            <img src="{{ ordergoods.goods.productimg }}" alt="">
                        </div>
                        <!--处理结束-->
                    {% endfor %}
            <span style="clear: both"><a href="#" style="font-size: 28px;">确认收货</a></span>
            </li>
        {% endfor %}
        <!--订单处理结束-->

    </ul>


{% endblock %}
